package cn.njxzc.examples;

import java.io.File;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.IOException;

public class Exam9_6 {

	public static void main(String[] args) throws IOException {
		File inputFile = new File(args[0]);
		File outputFile = new File(args[1]);
		FileInputStream in = new FileInputStream(inputFile);
		FileOutputStream out = new FileOutputStream(outputFile);
		int c;
		while ((c = in.read()) != -1) {
			System.out.println(c);
//			if (c > 96)
//				c -= 32;
			out.write(c);
		}
		in.close();
		out.close();

	}

}
